package com.yunji.framework_template.books.biz.service;

import com.yunji.framework_template.books.orm.persistence.model.BooksUserLike;
import com.yunji.framework_template.books.orm.persistence.mapper.BooksUserLikeMapper;
import com.yunji.framework_template.common.web.Page;

import java.util.List;

import org.springframework.stereotype.Service;
import org.springframework.beans.factory.annotation.Autowired;

import org.apache.ibatis.annotations.Param;

/**
 *
 * Created by fenglibin on 2019/01/24.
 */
@Service
public class BooksUserLikeService {

	@Autowired
    private BooksUserLikeMapper booksUserLikeMapper;
    
    public int deleteByPrimaryKey(Integer id){
        return booksUserLikeMapper.deleteByPrimaryKey(id);
    }

    public int insert(BooksUserLike record){
        return booksUserLikeMapper.insert(record);
    }

    public int insertSelective(BooksUserLike record){
        return booksUserLikeMapper.insertSelective(record);
    }

    public BooksUserLike selectByPrimaryKey(Integer id){
        return booksUserLikeMapper.selectByPrimaryKey(id);
    }

    public int updateByPrimaryKeySelective(BooksUserLike record){
        return booksUserLikeMapper.updateByPrimaryKeySelective(record);
    }

    public int updateByPrimaryKey(BooksUserLike record){
        return booksUserLikeMapper.updateByPrimaryKey(record);
    }

    public List<BooksUserLike> selectByCondition(BooksUserLike record){
        return booksUserLikeMapper.selectByCondition(record);
    }

    public List<BooksUserLike> selectAll(){
        return booksUserLikeMapper.selectAll();
    }

    public List<BooksUserLike> selectByPage(Page<BooksUserLike> page){
        return booksUserLikeMapper.selectByPage(page);
    }

    public Integer count(BooksUserLike record){
        return booksUserLikeMapper.count(record);
    }

    public int deleteByCondition(BooksUserLike record){
        return booksUserLikeMapper.deleteByCondition(record);
    }

}
